{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "4ad4f5f2",
   "metadata": {},
   "source": [
    "###### 随机数生成六个班的考试成绩，3门考试：Python、数学、语文。每个班50人"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "8c648c3f",
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "2a09e6e4",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[[ 85, 101,  88],\n",
       "        [114,  46,  65],\n",
       "        [ 98,  11,  73],\n",
       "        [ 37,  48, 118],\n",
       "        [103,  64,  27],\n",
       "        [ 11,  59,  80],\n",
       "        [115,  47, 119],\n",
       "        [ 94, 103,   2],\n",
       "        [ 62,  28, 113],\n",
       "        [ 92, 112,  41],\n",
       "        [ 61,  79,  36],\n",
       "        [ 48,  21,  26],\n",
       "        [112, 117,  22],\n",
       "        [100, 100,  57],\n",
       "        [110, 114,  76],\n",
       "        [ 66,  35,  46],\n",
       "        [ 74,  46,  12],\n",
       "        [ 96, 111,  92],\n",
       "        [ 34,  17, 115],\n",
       "        [ 30,  38,  63],\n",
       "        [ 79,  59,  54],\n",
       "        [  5,  10, 104],\n",
       "        [ 40,   2,  82],\n",
       "        [ 25, 116,  67],\n",
       "        [ 89,  29,  17],\n",
       "        [ 63,  97,  93],\n",
       "        [114,   9,  25],\n",
       "        [ 83, 113,  23],\n",
       "        [ 93,  51,  40],\n",
       "        [108,  73,  30],\n",
       "        [ 57,  38,  59],\n",
       "        [ 88, 117,  23],\n",
       "        [ 47,  81,  96],\n",
       "        [101,  67, 104],\n",
       "        [ 27,  98, 100],\n",
       "        [ 80, 117,  93],\n",
       "        [ 48,  79, 107],\n",
       "        [ 65,  87,  13],\n",
       "        [ 70,  60, 114],\n",
       "        [118,  83,  24],\n",
       "        [ 55,  28,  93],\n",
       "        [  4,  48,   8],\n",
       "        [ 24,  95,  65],\n",
       "        [ 88,  68,  55],\n",
       "        [ 89,  60,  94],\n",
       "        [  6,  87,  51],\n",
       "        [ 19, 106,  42],\n",
       "        [ 20,  46,  44],\n",
       "        [114,  66, 120],\n",
       "        [116,  14,  22]],\n",
       "\n",
       "       [[106,  98,  40],\n",
       "        [ 22,  50,  54],\n",
       "        [ 82,  62,  96],\n",
       "        [ 13,   6, 101],\n",
       "        [ 71, 105,  98],\n",
       "        [100,  51,   1],\n",
       "        [ 54,  89,  99],\n",
       "        [ 60, 118, 100],\n",
       "        [ 15,  61, 113],\n",
       "        [111, 118, 115],\n",
       "        [ 87, 101, 107],\n",
       "        [ 41,  16,  69],\n",
       "        [102,   6,   2],\n",
       "        [ 30,  24,  96],\n",
       "        [ 10,  76,  14],\n",
       "        [ 81, 100,  45],\n",
       "        [ 92,  92,  50],\n",
       "        [ 76,  77,  29],\n",
       "        [ 74,  88,  12],\n",
       "        [109, 106,  15],\n",
       "        [  6, 112, 120],\n",
       "        [ 78,  30,  52],\n",
       "        [ 83, 115,  13],\n",
       "        [ 15,  47,  92],\n",
       "        [ 12, 115,  37],\n",
       "        [ 41, 111,  62],\n",
       "        [ 39,  12,  68],\n",
       "        [  2, 120,  25],\n",
       "        [ 13, 103, 101],\n",
       "        [ 41,  75,   9],\n",
       "        [ 56,   3,  84],\n",
       "        [ 22, 110,  52],\n",
       "        [ 42,  34, 120],\n",
       "        [ 56,  50,  14],\n",
       "        [ 96,  29,  39],\n",
       "        [ 17,   2,  41],\n",
       "        [ 48,  41,  50],\n",
       "        [ 58,   8,  11],\n",
       "        [ 57,  45,  41],\n",
       "        [  2,   6,  85],\n",
       "        [ 72,  66, 100],\n",
       "        [ 77,  23,  22],\n",
       "        [ 24,  43,  55],\n",
       "        [ 29,  44,  17],\n",
       "        [ 67,  18,  16],\n",
       "        [109, 110,  70],\n",
       "        [ 28,  63,  96],\n",
       "        [ 64,  99,  99],\n",
       "        [ 19,  73,  95],\n",
       "        [ 91,  41,  79]],\n",
       "\n",
       "       [[ 79,  32,  63],\n",
       "        [ 94,  96,  61],\n",
       "        [ 89,   1,   2],\n",
       "        [102,   5, 107],\n",
       "        [108,  11,  24],\n",
       "        [ 54,  76, 115],\n",
       "        [ 44,  58,  87],\n",
       "        [112,  19,  92],\n",
       "        [ 76,  47,  83],\n",
       "        [105,  21, 113],\n",
       "        [ 98, 106,  29],\n",
       "        [104,  26,   8],\n",
       "        [ 65,  76,   1],\n",
       "        [ 49, 120,  73],\n",
       "        [ 12,  73,  97],\n",
       "        [104,  42, 104],\n",
       "        [ 80,  40,  97],\n",
       "        [ 11,  77, 102],\n",
       "        [104, 118,  68],\n",
       "        [ 80,  51,  20],\n",
       "        [ 22,  94, 116],\n",
       "        [ 29,  75,  71],\n",
       "        [ 73, 103,  85],\n",
       "        [ 22, 118,  82],\n",
       "        [118,  78,  43],\n",
       "        [ 75,  86,  10],\n",
       "        [105, 119,  91],\n",
       "        [ 33,  38,   7],\n",
       "        [ 72,  72,   9],\n",
       "        [ 57,  22, 110],\n",
       "        [118,  92,  43],\n",
       "        [ 95, 120,  32],\n",
       "        [  2,  40,  71],\n",
       "        [ 87,  56,  29],\n",
       "        [ 54,  21,  73],\n",
       "        [ 50, 104,  99],\n",
       "        [118,  65,  19],\n",
       "        [ 34, 104, 103],\n",
       "        [ 13,  85,  12],\n",
       "        [ 93,  69,  96],\n",
       "        [ 84,  46, 108],\n",
       "        [ 89,  72,  30],\n",
       "        [ 36,  42,  25],\n",
       "        [ 16,  42,   2],\n",
       "        [ 91,  26,  24],\n",
       "        [105,  45,  95],\n",
       "        [ 75,  57,  66],\n",
       "        [ 16,  98,   6],\n",
       "        [ 56, 101,  21],\n",
       "        [  6,  60,  86]],\n",
       "\n",
       "       [[ 69,  78,  47],\n",
       "        [119,  41,  59],\n",
       "        [ 20,  44,  43],\n",
       "        [ 53,  43,  31],\n",
       "        [ 38,  59,  78],\n",
       "        [  6,  12, 117],\n",
       "        [115,  98, 107],\n",
       "        [116,   0,   3],\n",
       "        [  0,  49,  54],\n",
       "        [ 59,  23,  84],\n",
       "        [ 20,  23,  51],\n",
       "        [ 16,  52, 119],\n",
       "        [ 54, 109, 105],\n",
       "        [ 65,   8,  77],\n",
       "        [ 16, 116, 116],\n",
       "        [ 26, 100, 103],\n",
       "        [ 17, 116,  31],\n",
       "        [ 17,  59,  28],\n",
       "        [ 98,  30,  36],\n",
       "        [107,  16,  97],\n",
       "        [ 10,  36,  62],\n",
       "        [ 26,  75,  43],\n",
       "        [ 29,  98,  14],\n",
       "        [ 63,  75,  65],\n",
       "        [ 41,  75,  78],\n",
       "        [ 79,   8,  82],\n",
       "        [  1,  98, 120],\n",
       "        [  4,  52,  34],\n",
       "        [ 10, 103,  95],\n",
       "        [ 98,  35,  89],\n",
       "        [ 14,  98, 103],\n",
       "        [ 12,  67,  48],\n",
       "        [ 42, 104,  19],\n",
       "        [ 16,  86,   3],\n",
       "        [ 19, 117,  87],\n",
       "        [ 88,  33, 103],\n",
       "        [ 29,  98,  33],\n",
       "        [ 46, 103,  18],\n",
       "        [108,  91,  97],\n",
       "        [ 90,  74,  23],\n",
       "        [ 79,  50, 116],\n",
       "        [ 83,  15,  81],\n",
       "        [ 86,   6,  34],\n",
       "        [ 52, 115, 104],\n",
       "        [ 34,  63,  92],\n",
       "        [ 29, 120,  16],\n",
       "        [ 58,  42,  71],\n",
       "        [  6,   4,  70],\n",
       "        [  7,  98,  91],\n",
       "        [ 56,  25,  43]],\n",
       "\n",
       "       [[112,  48,   8],\n",
       "        [  2,  90,  26],\n",
       "        [ 26,  94,  19],\n",
       "        [ 84, 110,  46],\n",
       "        [116,  86, 100],\n",
       "        [ 60,  97,  73],\n",
       "        [ 97,  58,  40],\n",
       "        [ 76,  39,  76],\n",
       "        [ 91,   5, 117],\n",
       "        [ 99,  53,  16],\n",
       "        [ 87, 116, 101],\n",
       "        [ 39,  29,  53],\n",
       "        [ 97,  87,  28],\n",
       "        [ 37,  29,  19],\n",
       "        [120,  17,  56],\n",
       "        [ 76, 100,  94],\n",
       "        [  4,  98,  60],\n",
       "        [ 41,  74, 110],\n",
       "        [ 91,   6,  89],\n",
       "        [ 38,  14,  10],\n",
       "        [ 37,  92,  55],\n",
       "        [ 21,  26,  73],\n",
       "        [ 79,  91, 106],\n",
       "        [  2,  31,  35],\n",
       "        [118,  74,  14],\n",
       "        [111,   5,  65],\n",
       "        [ 38,   8,  14],\n",
       "        [ 86,  15, 117],\n",
       "        [ 42,  57, 116],\n",
       "        [ 57,  91, 117],\n",
       "        [ 17,  42,  46],\n",
       "        [ 72,  96,  26],\n",
       "        [ 75,   5,  20],\n",
       "        [ 34,   2,  95],\n",
       "        [108,  22,  96],\n",
       "        [ 36,  53,  69],\n",
       "        [ 74,  64,  91],\n",
       "        [120,  91,  17],\n",
       "        [ 48,  74,  22],\n",
       "        [106, 102, 106],\n",
       "        [ 39,  33,  15],\n",
       "        [ 28, 107,   3],\n",
       "        [100,  45,  83],\n",
       "        [  7,  15, 102],\n",
       "        [ 44,  35,  25],\n",
       "        [ 98,  58,  89],\n",
       "        [ 51,  39,  39],\n",
       "        [ 10,  90,  75],\n",
       "        [ 77,  70,  68],\n",
       "        [ 87,  28,  30]],\n",
       "\n",
       "       [[ 16, 120,  84],\n",
       "        [ 88,  14,  24],\n",
       "        [  7, 118,  58],\n",
       "        [ 54,  80,   6],\n",
       "        [  7,   2,  91],\n",
       "        [ 31,  11,  96],\n",
       "        [ 81,  18,  14],\n",
       "        [110,  86,  51],\n",
       "        [  3,  33, 100],\n",
       "        [ 68,  75,  26],\n",
       "        [ 13,  16,  79],\n",
       "        [ 71,  92,  28],\n",
       "        [ 95, 105,  31],\n",
       "        [ 93,  42, 117],\n",
       "        [  9,  55,  52],\n",
       "        [ 97, 120,   7],\n",
       "        [ 33,  15,  79],\n",
       "        [ 70, 120, 115],\n",
       "        [100,  72,  34],\n",
       "        [ 13,  73,  54],\n",
       "        [ 34,  13,  27],\n",
       "        [ 92,  10,   5],\n",
       "        [ 47,  82,  27],\n",
       "        [  5,   9,  15],\n",
       "        [ 70,  25,   3],\n",
       "        [ 29,  94,  49],\n",
       "        [ 22,  44,  66],\n",
       "        [ 11, 101,  69],\n",
       "        [120,  86,  45],\n",
       "        [ 60, 120,  23],\n",
       "        [ 67,  67,  89],\n",
       "        [ 90, 116,   4],\n",
       "        [ 80,   5,  26],\n",
       "        [ 33,  27, 115],\n",
       "        [ 70,  16,  50],\n",
       "        [ 59,   9,  59],\n",
       "        [114,  64,  87],\n",
       "        [ 50,  18, 102],\n",
       "        [ 52, 108, 111],\n",
       "        [116,  34,  72],\n",
       "        [ 65,   6,  90],\n",
       "        [  9, 109,  25],\n",
       "        [ 43, 105,  10],\n",
       "        [ 44,  30,  30],\n",
       "        [110,  33,   2],\n",
       "        [ 24,  20, 117],\n",
       "        [110,  91,  63],\n",
       "        [107, 119, 107],\n",
       "        [ 96,  21,  57],\n",
       "        [ 75, 115,  16]]])"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a = np.random.randint(0,121,size = (6,50,3))\n",
    "a"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a78ba442",
   "metadata": {},
   "source": [
    "###### 将六个班的考试成绩进行合并得到score"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "fabf582a",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[ 85, 101,  88],\n",
       "       [114,  46,  65],\n",
       "       [ 98,  11,  73],\n",
       "       [ 37,  48, 118],\n",
       "       [103,  64,  27],\n",
       "       [ 11,  59,  80],\n",
       "       [115,  47, 119],\n",
       "       [ 94, 103,   2],\n",
       "       [ 62,  28, 113],\n",
       "       [ 92, 112,  41],\n",
       "       [ 61,  79,  36],\n",
       "       [ 48,  21,  26],\n",
       "       [112, 117,  22],\n",
       "       [100, 100,  57],\n",
       "       [110, 114,  76],\n",
       "       [ 66,  35,  46],\n",
       "       [ 74,  46,  12],\n",
       "       [ 96, 111,  92],\n",
       "       [ 34,  17, 115],\n",
       "       [ 30,  38,  63],\n",
       "       [ 79,  59,  54],\n",
       "       [  5,  10, 104],\n",
       "       [ 40,   2,  82],\n",
       "       [ 25, 116,  67],\n",
       "       [ 89,  29,  17],\n",
       "       [ 63,  97,  93],\n",
       "       [114,   9,  25],\n",
       "       [ 83, 113,  23],\n",
       "       [ 93,  51,  40],\n",
       "       [108,  73,  30],\n",
       "       [ 57,  38,  59],\n",
       "       [ 88, 117,  23],\n",
       "       [ 47,  81,  96],\n",
       "       [101,  67, 104],\n",
       "       [ 27,  98, 100],\n",
       "       [ 80, 117,  93],\n",
       "       [ 48,  79, 107],\n",
       "       [ 65,  87,  13],\n",
       "       [ 70,  60, 114],\n",
       "       [118,  83,  24],\n",
       "       [ 55,  28,  93],\n",
       "       [  4,  48,   8],\n",
       "       [ 24,  95,  65],\n",
       "       [ 88,  68,  55],\n",
       "       [ 89,  60,  94],\n",
       "       [  6,  87,  51],\n",
       "       [ 19, 106,  42],\n",
       "       [ 20,  46,  44],\n",
       "       [114,  66, 120],\n",
       "       [116,  14,  22],\n",
       "       [106,  98,  40],\n",
       "       [ 22,  50,  54],\n",
       "       [ 82,  62,  96],\n",
       "       [ 13,   6, 101],\n",
       "       [ 71, 105,  98],\n",
       "       [100,  51,   1],\n",
       "       [ 54,  89,  99],\n",
       "       [ 60, 118, 100],\n",
       "       [ 15,  61, 113],\n",
       "       [111, 118, 115],\n",
       "       [ 87, 101, 107],\n",
       "       [ 41,  16,  69],\n",
       "       [102,   6,   2],\n",
       "       [ 30,  24,  96],\n",
       "       [ 10,  76,  14],\n",
       "       [ 81, 100,  45],\n",
       "       [ 92,  92,  50],\n",
       "       [ 76,  77,  29],\n",
       "       [ 74,  88,  12],\n",
       "       [109, 106,  15],\n",
       "       [  6, 112, 120],\n",
       "       [ 78,  30,  52],\n",
       "       [ 83, 115,  13],\n",
       "       [ 15,  47,  92],\n",
       "       [ 12, 115,  37],\n",
       "       [ 41, 111,  62],\n",
       "       [ 39,  12,  68],\n",
       "       [  2, 120,  25],\n",
       "       [ 13, 103, 101],\n",
       "       [ 41,  75,   9],\n",
       "       [ 56,   3,  84],\n",
       "       [ 22, 110,  52],\n",
       "       [ 42,  34, 120],\n",
       "       [ 56,  50,  14],\n",
       "       [ 96,  29,  39],\n",
       "       [ 17,   2,  41],\n",
       "       [ 48,  41,  50],\n",
       "       [ 58,   8,  11],\n",
       "       [ 57,  45,  41],\n",
       "       [  2,   6,  85],\n",
       "       [ 72,  66, 100],\n",
       "       [ 77,  23,  22],\n",
       "       [ 24,  43,  55],\n",
       "       [ 29,  44,  17],\n",
       "       [ 67,  18,  16],\n",
       "       [109, 110,  70],\n",
       "       [ 28,  63,  96],\n",
       "       [ 64,  99,  99],\n",
       "       [ 19,  73,  95],\n",
       "       [ 91,  41,  79],\n",
       "       [ 79,  32,  63],\n",
       "       [ 94,  96,  61],\n",
       "       [ 89,   1,   2],\n",
       "       [102,   5, 107],\n",
       "       [108,  11,  24],\n",
       "       [ 54,  76, 115],\n",
       "       [ 44,  58,  87],\n",
       "       [112,  19,  92],\n",
       "       [ 76,  47,  83],\n",
       "       [105,  21, 113],\n",
       "       [ 98, 106,  29],\n",
       "       [104,  26,   8],\n",
       "       [ 65,  76,   1],\n",
       "       [ 49, 120,  73],\n",
       "       [ 12,  73,  97],\n",
       "       [104,  42, 104],\n",
       "       [ 80,  40,  97],\n",
       "       [ 11,  77, 102],\n",
       "       [104, 118,  68],\n",
       "       [ 80,  51,  20],\n",
       "       [ 22,  94, 116],\n",
       "       [ 29,  75,  71],\n",
       "       [ 73, 103,  85],\n",
       "       [ 22, 118,  82],\n",
       "       [118,  78,  43],\n",
       "       [ 75,  86,  10],\n",
       "       [105, 119,  91],\n",
       "       [ 33,  38,   7],\n",
       "       [ 72,  72,   9],\n",
       "       [ 57,  22, 110],\n",
       "       [118,  92,  43],\n",
       "       [ 95, 120,  32],\n",
       "       [  2,  40,  71],\n",
       "       [ 87,  56,  29],\n",
       "       [ 54,  21,  73],\n",
       "       [ 50, 104,  99],\n",
       "       [118,  65,  19],\n",
       "       [ 34, 104, 103],\n",
       "       [ 13,  85,  12],\n",
       "       [ 93,  69,  96],\n",
       "       [ 84,  46, 108],\n",
       "       [ 89,  72,  30],\n",
       "       [ 36,  42,  25],\n",
       "       [ 16,  42,   2],\n",
       "       [ 91,  26,  24],\n",
       "       [105,  45,  95],\n",
       "       [ 75,  57,  66],\n",
       "       [ 16,  98,   6],\n",
       "       [ 56, 101,  21],\n",
       "       [  6,  60,  86],\n",
       "       [ 69,  78,  47],\n",
       "       [119,  41,  59],\n",
       "       [ 20,  44,  43],\n",
       "       [ 53,  43,  31],\n",
       "       [ 38,  59,  78],\n",
       "       [  6,  12, 117],\n",
       "       [115,  98, 107],\n",
       "       [116,   0,   3],\n",
       "       [  0,  49,  54],\n",
       "       [ 59,  23,  84],\n",
       "       [ 20,  23,  51],\n",
       "       [ 16,  52, 119],\n",
       "       [ 54, 109, 105],\n",
       "       [ 65,   8,  77],\n",
       "       [ 16, 116, 116],\n",
       "       [ 26, 100, 103],\n",
       "       [ 17, 116,  31],\n",
       "       [ 17,  59,  28],\n",
       "       [ 98,  30,  36],\n",
       "       [107,  16,  97],\n",
       "       [ 10,  36,  62],\n",
       "       [ 26,  75,  43],\n",
       "       [ 29,  98,  14],\n",
       "       [ 63,  75,  65],\n",
       "       [ 41,  75,  78],\n",
       "       [ 79,   8,  82],\n",
       "       [  1,  98, 120],\n",
       "       [  4,  52,  34],\n",
       "       [ 10, 103,  95],\n",
       "       [ 98,  35,  89],\n",
       "       [ 14,  98, 103],\n",
       "       [ 12,  67,  48],\n",
       "       [ 42, 104,  19],\n",
       "       [ 16,  86,   3],\n",
       "       [ 19, 117,  87],\n",
       "       [ 88,  33, 103],\n",
       "       [ 29,  98,  33],\n",
       "       [ 46, 103,  18],\n",
       "       [108,  91,  97],\n",
       "       [ 90,  74,  23],\n",
       "       [ 79,  50, 116],\n",
       "       [ 83,  15,  81],\n",
       "       [ 86,   6,  34],\n",
       "       [ 52, 115, 104],\n",
       "       [ 34,  63,  92],\n",
       "       [ 29, 120,  16],\n",
       "       [ 58,  42,  71],\n",
       "       [  6,   4,  70],\n",
       "       [  7,  98,  91],\n",
       "       [ 56,  25,  43],\n",
       "       [112,  48,   8],\n",
       "       [  2,  90,  26],\n",
       "       [ 26,  94,  19],\n",
       "       [ 84, 110,  46],\n",
       "       [116,  86, 100],\n",
       "       [ 60,  97,  73],\n",
       "       [ 97,  58,  40],\n",
       "       [ 76,  39,  76],\n",
       "       [ 91,   5, 117],\n",
       "       [ 99,  53,  16],\n",
       "       [ 87, 116, 101],\n",
       "       [ 39,  29,  53],\n",
       "       [ 97,  87,  28],\n",
       "       [ 37,  29,  19],\n",
       "       [120,  17,  56],\n",
       "       [ 76, 100,  94],\n",
       "       [  4,  98,  60],\n",
       "       [ 41,  74, 110],\n",
       "       [ 91,   6,  89],\n",
       "       [ 38,  14,  10],\n",
       "       [ 37,  92,  55],\n",
       "       [ 21,  26,  73],\n",
       "       [ 79,  91, 106],\n",
       "       [  2,  31,  35],\n",
       "       [118,  74,  14],\n",
       "       [111,   5,  65],\n",
       "       [ 38,   8,  14],\n",
       "       [ 86,  15, 117],\n",
       "       [ 42,  57, 116],\n",
       "       [ 57,  91, 117],\n",
       "       [ 17,  42,  46],\n",
       "       [ 72,  96,  26],\n",
       "       [ 75,   5,  20],\n",
       "       [ 34,   2,  95],\n",
       "       [108,  22,  96],\n",
       "       [ 36,  53,  69],\n",
       "       [ 74,  64,  91],\n",
       "       [120,  91,  17],\n",
       "       [ 48,  74,  22],\n",
       "       [106, 102, 106],\n",
       "       [ 39,  33,  15],\n",
       "       [ 28, 107,   3],\n",
       "       [100,  45,  83],\n",
       "       [  7,  15, 102],\n",
       "       [ 44,  35,  25],\n",
       "       [ 98,  58,  89],\n",
       "       [ 51,  39,  39],\n",
       "       [ 10,  90,  75],\n",
       "       [ 77,  70,  68],\n",
       "       [ 87,  28,  30],\n",
       "       [ 16, 120,  84],\n",
       "       [ 88,  14,  24],\n",
       "       [  7, 118,  58],\n",
       "       [ 54,  80,   6],\n",
       "       [  7,   2,  91],\n",
       "       [ 31,  11,  96],\n",
       "       [ 81,  18,  14],\n",
       "       [110,  86,  51],\n",
       "       [  3,  33, 100],\n",
       "       [ 68,  75,  26],\n",
       "       [ 13,  16,  79],\n",
       "       [ 71,  92,  28],\n",
       "       [ 95, 105,  31],\n",
       "       [ 93,  42, 117],\n",
       "       [  9,  55,  52],\n",
       "       [ 97, 120,   7],\n",
       "       [ 33,  15,  79],\n",
       "       [ 70, 120, 115],\n",
       "       [100,  72,  34],\n",
       "       [ 13,  73,  54],\n",
       "       [ 34,  13,  27],\n",
       "       [ 92,  10,   5],\n",
       "       [ 47,  82,  27],\n",
       "       [  5,   9,  15],\n",
       "       [ 70,  25,   3],\n",
       "       [ 29,  94,  49],\n",
       "       [ 22,  44,  66],\n",
       "       [ 11, 101,  69],\n",
       "       [120,  86,  45],\n",
       "       [ 60, 120,  23],\n",
       "       [ 67,  67,  89],\n",
       "       [ 90, 116,   4],\n",
       "       [ 80,   5,  26],\n",
       "       [ 33,  27, 115],\n",
       "       [ 70,  16,  50],\n",
       "       [ 59,   9,  59],\n",
       "       [114,  64,  87],\n",
       "       [ 50,  18, 102],\n",
       "       [ 52, 108, 111],\n",
       "       [116,  34,  72],\n",
       "       [ 65,   6,  90],\n",
       "       [  9, 109,  25],\n",
       "       [ 43, 105,  10],\n",
       "       [ 44,  30,  30],\n",
       "       [110,  33,   2],\n",
       "       [ 24,  20, 117],\n",
       "       [110,  91,  63],\n",
       "       [107, 119, 107],\n",
       "       [ 96,  21,  57],\n",
       "       [ 75, 115,  16]])"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "score = np.concatenate(a)\n",
    "score"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "882e8295",
   "metadata": {},
   "source": [
    "###### 生成性别数组sex，水平叠加数组sex和score得到data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "9a0e9456",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[  0,  85, 101,  88],\n",
       "       [  1, 114,  46,  65],\n",
       "       [  0,  98,  11,  73],\n",
       "       ...,\n",
       "       [  0, 107, 119, 107],\n",
       "       [  0,  96,  21,  57],\n",
       "       [  1,  75, 115,  16]])"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 0表示女生，1表示男生\n",
    "sex = np.random.randint(0,2,size = (300,1))\n",
    "data = np.hstack((sex,score))\n",
    "data"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fb781d85",
   "metadata": {},
   "source": [
    "###### 分别计算男女生各科成绩统计指标：最小值、最大值、平均分、中位数、标准差"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "e54fdf76",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([ True, False,  True,  True,  True, False, False,  True,  True,\n",
       "        True, False,  True,  True,  True,  True,  True, False, False,\n",
       "        True,  True,  True,  True, False, False, False,  True, False,\n",
       "       False,  True, False,  True, False,  True,  True, False, False,\n",
       "        True,  True,  True, False,  True, False, False,  True,  True,\n",
       "       False, False,  True, False,  True, False, False,  True, False,\n",
       "        True,  True,  True,  True,  True,  True, False,  True, False,\n",
       "       False,  True, False,  True,  True, False,  True,  True,  True,\n",
       "        True, False, False,  True,  True, False, False, False, False,\n",
       "        True, False,  True,  True, False, False, False, False,  True,\n",
       "        True,  True, False,  True,  True,  True,  True, False,  True,\n",
       "       False,  True,  True,  True, False, False,  True, False,  True,\n",
       "       False, False,  True, False,  True, False, False,  True, False,\n",
       "       False, False,  True, False, False,  True,  True, False, False,\n",
       "       False, False, False,  True,  True,  True,  True,  True, False,\n",
       "       False, False,  True,  True, False, False,  True,  True,  True,\n",
       "       False,  True,  True,  True, False,  True,  True,  True, False,\n",
       "        True,  True,  True, False, False,  True,  True,  True,  True,\n",
       "       False, False,  True, False, False, False,  True, False,  True,\n",
       "       False,  True, False, False,  True,  True,  True, False, False,\n",
       "        True, False, False,  True,  True,  True, False,  True, False,\n",
       "        True,  True, False,  True, False,  True, False,  True, False,\n",
       "       False,  True,  True, False, False,  True, False,  True, False,\n",
       "       False,  True,  True,  True, False,  True, False, False, False,\n",
       "       False,  True,  True, False, False,  True,  True, False,  True,\n",
       "       False, False, False,  True,  True,  True,  True, False, False,\n",
       "        True,  True,  True,  True,  True, False, False,  True,  True,\n",
       "       False, False,  True,  True, False, False,  True,  True, False,\n",
       "       False, False, False,  True,  True,  True,  True,  True, False,\n",
       "        True,  True, False, False, False, False, False, False,  True,\n",
       "       False,  True, False,  True,  True, False,  True,  True,  True,\n",
       "       False,  True,  True, False,  True,  True,  True,  True, False,\n",
       "        True,  True, False,  True,  True,  True, False,  True,  True,\n",
       "        True,  True, False])"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "female = data[:, 0] == 0\n",
    "female"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "7ab21355",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[ 85, 101,  88],\n",
       "       [ 98,  11,  73],\n",
       "       [ 37,  48, 118],\n",
       "       [103,  64,  27],\n",
       "       [ 94, 103,   2],\n",
       "       [ 62,  28, 113],\n",
       "       [ 92, 112,  41],\n",
       "       [ 48,  21,  26],\n",
       "       [112, 117,  22],\n",
       "       [100, 100,  57],\n",
       "       [110, 114,  76],\n",
       "       [ 66,  35,  46],\n",
       "       [ 34,  17, 115],\n",
       "       [ 30,  38,  63],\n",
       "       [ 79,  59,  54],\n",
       "       [  5,  10, 104],\n",
       "       [ 63,  97,  93],\n",
       "       [ 93,  51,  40],\n",
       "       [ 57,  38,  59],\n",
       "       [ 47,  81,  96],\n",
       "       [101,  67, 104],\n",
       "       [ 48,  79, 107],\n",
       "       [ 65,  87,  13],\n",
       "       [ 70,  60, 114],\n",
       "       [ 55,  28,  93],\n",
       "       [ 88,  68,  55],\n",
       "       [ 89,  60,  94],\n",
       "       [ 20,  46,  44],\n",
       "       [116,  14,  22],\n",
       "       [ 82,  62,  96],\n",
       "       [ 71, 105,  98],\n",
       "       [100,  51,   1],\n",
       "       [ 54,  89,  99],\n",
       "       [ 60, 118, 100],\n",
       "       [ 15,  61, 113],\n",
       "       [111, 118, 115],\n",
       "       [ 41,  16,  69],\n",
       "       [ 10,  76,  14],\n",
       "       [ 92,  92,  50],\n",
       "       [ 76,  77,  29],\n",
       "       [109, 106,  15],\n",
       "       [  6, 112, 120],\n",
       "       [ 78,  30,  52],\n",
       "       [ 83, 115,  13],\n",
       "       [ 41, 111,  62],\n",
       "       [ 39,  12,  68],\n",
       "       [ 22, 110,  52],\n",
       "       [ 56,  50,  14],\n",
       "       [ 96,  29,  39],\n",
       "       [  2,   6,  85],\n",
       "       [ 72,  66, 100],\n",
       "       [ 77,  23,  22],\n",
       "       [ 29,  44,  17],\n",
       "       [ 67,  18,  16],\n",
       "       [109, 110,  70],\n",
       "       [ 28,  63,  96],\n",
       "       [ 19,  73,  95],\n",
       "       [ 79,  32,  63],\n",
       "       [ 94,  96,  61],\n",
       "       [ 89,   1,   2],\n",
       "       [ 54,  76, 115],\n",
       "       [112,  19,  92],\n",
       "       [ 98, 106,  29],\n",
       "       [ 65,  76,   1],\n",
       "       [104,  42, 104],\n",
       "       [ 80,  51,  20],\n",
       "       [ 73, 103,  85],\n",
       "       [ 22, 118,  82],\n",
       "       [ 57,  22, 110],\n",
       "       [118,  92,  43],\n",
       "       [ 95, 120,  32],\n",
       "       [  2,  40,  71],\n",
       "       [ 87,  56,  29],\n",
       "       [ 34, 104, 103],\n",
       "       [ 13,  85,  12],\n",
       "       [ 89,  72,  30],\n",
       "       [ 36,  42,  25],\n",
       "       [ 16,  42,   2],\n",
       "       [105,  45,  95],\n",
       "       [ 75,  57,  66],\n",
       "       [ 16,  98,   6],\n",
       "       [  6,  60,  86],\n",
       "       [ 69,  78,  47],\n",
       "       [119,  41,  59],\n",
       "       [ 53,  43,  31],\n",
       "       [ 38,  59,  78],\n",
       "       [  6,  12, 117],\n",
       "       [  0,  49,  54],\n",
       "       [ 59,  23,  84],\n",
       "       [ 20,  23,  51],\n",
       "       [ 16,  52, 119],\n",
       "       [ 16, 116, 116],\n",
       "       [ 98,  30,  36],\n",
       "       [ 10,  36,  62],\n",
       "       [ 29,  98,  14],\n",
       "       [ 79,   8,  82],\n",
       "       [  1,  98, 120],\n",
       "       [  4,  52,  34],\n",
       "       [ 14,  98, 103],\n",
       "       [ 16,  86,   3],\n",
       "       [ 19, 117,  87],\n",
       "       [ 88,  33, 103],\n",
       "       [ 46, 103,  18],\n",
       "       [ 90,  74,  23],\n",
       "       [ 79,  50, 116],\n",
       "       [ 86,   6,  34],\n",
       "       [ 34,  63,  92],\n",
       "       [ 58,  42,  71],\n",
       "       [ 56,  25,  43],\n",
       "       [112,  48,   8],\n",
       "       [ 84, 110,  46],\n",
       "       [ 60,  97,  73],\n",
       "       [ 91,   5, 117],\n",
       "       [ 99,  53,  16],\n",
       "       [ 87, 116, 101],\n",
       "       [ 97,  87,  28],\n",
       "       [ 41,  74, 110],\n",
       "       [ 91,   6,  89],\n",
       "       [ 21,  26,  73],\n",
       "       [ 79,  91, 106],\n",
       "       [118,  74,  14],\n",
       "       [ 42,  57, 116],\n",
       "       [ 57,  91, 117],\n",
       "       [ 17,  42,  46],\n",
       "       [ 72,  96,  26],\n",
       "       [108,  22,  96],\n",
       "       [ 36,  53,  69],\n",
       "       [ 74,  64,  91],\n",
       "       [120,  91,  17],\n",
       "       [ 48,  74,  22],\n",
       "       [ 28, 107,   3],\n",
       "       [100,  45,  83],\n",
       "       [ 98,  58,  89],\n",
       "       [ 51,  39,  39],\n",
       "       [ 87,  28,  30],\n",
       "       [ 16, 120,  84],\n",
       "       [ 31,  11,  96],\n",
       "       [ 81,  18,  14],\n",
       "       [110,  86,  51],\n",
       "       [  3,  33, 100],\n",
       "       [ 68,  75,  26],\n",
       "       [ 71,  92,  28],\n",
       "       [ 95, 105,  31],\n",
       "       [ 13,  73,  54],\n",
       "       [ 92,  10,   5],\n",
       "       [  5,   9,  15],\n",
       "       [ 70,  25,   3],\n",
       "       [ 22,  44,  66],\n",
       "       [ 11, 101,  69],\n",
       "       [120,  86,  45],\n",
       "       [ 67,  67,  89],\n",
       "       [ 90, 116,   4],\n",
       "       [ 33,  27, 115],\n",
       "       [ 70,  16,  50],\n",
       "       [ 59,   9,  59],\n",
       "       [114,  64,  87],\n",
       "       [ 52, 108, 111],\n",
       "       [116,  34,  72],\n",
       "       [  9, 109,  25],\n",
       "       [ 43, 105,  10],\n",
       "       [ 44,  30,  30],\n",
       "       [ 24,  20, 117],\n",
       "       [110,  91,  63],\n",
       "       [107, 119, 107],\n",
       "       [ 96,  21,  57]])"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#女生成绩\n",
    "female_score = data[female][:, 1:] \n",
    "female_score"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "24fcc51a",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([False,  True, False, False, False,  True,  True, False, False,\n",
       "       False,  True, False, False, False, False, False,  True,  True,\n",
       "       False, False, False, False,  True,  True,  True, False,  True,\n",
       "        True, False,  True, False,  True, False, False,  True,  True,\n",
       "       False, False, False,  True, False,  True,  True, False, False,\n",
       "        True,  True, False,  True, False,  True,  True, False,  True,\n",
       "       False, False, False, False, False, False,  True, False,  True,\n",
       "        True, False,  True, False, False,  True, False, False, False,\n",
       "       False,  True,  True, False, False,  True,  True,  True,  True,\n",
       "       False,  True, False, False,  True,  True,  True,  True, False,\n",
       "       False, False,  True, False, False, False, False,  True, False,\n",
       "        True, False, False, False,  True,  True, False,  True, False,\n",
       "        True,  True, False,  True, False,  True,  True, False,  True,\n",
       "        True,  True, False,  True,  True, False, False,  True,  True,\n",
       "        True,  True,  True, False, False, False, False, False,  True,\n",
       "        True,  True, False, False,  True,  True, False, False, False,\n",
       "        True, False, False, False,  True, False, False, False,  True,\n",
       "       False, False, False,  True,  True, False, False, False, False,\n",
       "        True,  True, False,  True,  True,  True, False,  True, False,\n",
       "        True, False,  True,  True, False, False, False,  True,  True,\n",
       "       False,  True,  True, False, False, False,  True, False,  True,\n",
       "       False, False,  True, False,  True, False,  True, False,  True,\n",
       "        True, False, False,  True,  True, False,  True, False,  True,\n",
       "        True, False, False, False,  True, False,  True,  True,  True,\n",
       "        True, False, False,  True,  True, False, False,  True, False,\n",
       "        True,  True,  True, False, False, False, False,  True,  True,\n",
       "       False, False, False, False, False,  True,  True, False, False,\n",
       "        True,  True, False, False,  True,  True, False, False,  True,\n",
       "        True,  True,  True, False, False, False, False, False,  True,\n",
       "       False, False,  True,  True,  True,  True,  True,  True, False,\n",
       "        True, False,  True, False, False,  True, False, False, False,\n",
       "        True, False, False,  True, False, False, False, False,  True,\n",
       "       False, False,  True, False, False, False,  True, False, False,\n",
       "       False, False,  True])"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "male = data[:,0] == 1\n",
    "male"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "id": "1f1613b5",
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[114,  46,  65],\n",
       "       [ 11,  59,  80],\n",
       "       [115,  47, 119],\n",
       "       [ 61,  79,  36],\n",
       "       [ 74,  46,  12],\n",
       "       [ 96, 111,  92],\n",
       "       [ 40,   2,  82],\n",
       "       [ 25, 116,  67],\n",
       "       [ 89,  29,  17],\n",
       "       [114,   9,  25],\n",
       "       [ 83, 113,  23],\n",
       "       [108,  73,  30],\n",
       "       [ 88, 117,  23],\n",
       "       [ 27,  98, 100],\n",
       "       [ 80, 117,  93],\n",
       "       [118,  83,  24],\n",
       "       [  4,  48,   8],\n",
       "       [ 24,  95,  65],\n",
       "       [  6,  87,  51],\n",
       "       [ 19, 106,  42],\n",
       "       [114,  66, 120],\n",
       "       [106,  98,  40],\n",
       "       [ 22,  50,  54],\n",
       "       [ 13,   6, 101],\n",
       "       [ 87, 101, 107],\n",
       "       [102,   6,   2],\n",
       "       [ 30,  24,  96],\n",
       "       [ 81, 100,  45],\n",
       "       [ 74,  88,  12],\n",
       "       [ 15,  47,  92],\n",
       "       [ 12, 115,  37],\n",
       "       [  2, 120,  25],\n",
       "       [ 13, 103, 101],\n",
       "       [ 41,  75,   9],\n",
       "       [ 56,   3,  84],\n",
       "       [ 42,  34, 120],\n",
       "       [ 17,   2,  41],\n",
       "       [ 48,  41,  50],\n",
       "       [ 58,   8,  11],\n",
       "       [ 57,  45,  41],\n",
       "       [ 24,  43,  55],\n",
       "       [ 64,  99,  99],\n",
       "       [ 91,  41,  79],\n",
       "       [102,   5, 107],\n",
       "       [108,  11,  24],\n",
       "       [ 44,  58,  87],\n",
       "       [ 76,  47,  83],\n",
       "       [105,  21, 113],\n",
       "       [104,  26,   8],\n",
       "       [ 49, 120,  73],\n",
       "       [ 12,  73,  97],\n",
       "       [ 80,  40,  97],\n",
       "       [ 11,  77, 102],\n",
       "       [104, 118,  68],\n",
       "       [ 22,  94, 116],\n",
       "       [ 29,  75,  71],\n",
       "       [118,  78,  43],\n",
       "       [ 75,  86,  10],\n",
       "       [105, 119,  91],\n",
       "       [ 33,  38,   7],\n",
       "       [ 72,  72,   9],\n",
       "       [ 54,  21,  73],\n",
       "       [ 50, 104,  99],\n",
       "       [118,  65,  19],\n",
       "       [ 93,  69,  96],\n",
       "       [ 84,  46, 108],\n",
       "       [ 91,  26,  24],\n",
       "       [ 56, 101,  21],\n",
       "       [ 20,  44,  43],\n",
       "       [115,  98, 107],\n",
       "       [116,   0,   3],\n",
       "       [ 54, 109, 105],\n",
       "       [ 65,   8,  77],\n",
       "       [ 26, 100, 103],\n",
       "       [ 17, 116,  31],\n",
       "       [ 17,  59,  28],\n",
       "       [107,  16,  97],\n",
       "       [ 26,  75,  43],\n",
       "       [ 63,  75,  65],\n",
       "       [ 41,  75,  78],\n",
       "       [ 10, 103,  95],\n",
       "       [ 98,  35,  89],\n",
       "       [ 12,  67,  48],\n",
       "       [ 42, 104,  19],\n",
       "       [ 29,  98,  33],\n",
       "       [108,  91,  97],\n",
       "       [ 83,  15,  81],\n",
       "       [ 52, 115, 104],\n",
       "       [ 29, 120,  16],\n",
       "       [  6,   4,  70],\n",
       "       [  7,  98,  91],\n",
       "       [  2,  90,  26],\n",
       "       [ 26,  94,  19],\n",
       "       [116,  86, 100],\n",
       "       [ 97,  58,  40],\n",
       "       [ 76,  39,  76],\n",
       "       [ 39,  29,  53],\n",
       "       [ 37,  29,  19],\n",
       "       [120,  17,  56],\n",
       "       [ 76, 100,  94],\n",
       "       [  4,  98,  60],\n",
       "       [ 38,  14,  10],\n",
       "       [ 37,  92,  55],\n",
       "       [  2,  31,  35],\n",
       "       [111,   5,  65],\n",
       "       [ 38,   8,  14],\n",
       "       [ 86,  15, 117],\n",
       "       [ 75,   5,  20],\n",
       "       [ 34,   2,  95],\n",
       "       [106, 102, 106],\n",
       "       [ 39,  33,  15],\n",
       "       [  7,  15, 102],\n",
       "       [ 44,  35,  25],\n",
       "       [ 10,  90,  75],\n",
       "       [ 77,  70,  68],\n",
       "       [ 88,  14,  24],\n",
       "       [  7, 118,  58],\n",
       "       [ 54,  80,   6],\n",
       "       [  7,   2,  91],\n",
       "       [ 13,  16,  79],\n",
       "       [ 93,  42, 117],\n",
       "       [  9,  55,  52],\n",
       "       [ 97, 120,   7],\n",
       "       [ 33,  15,  79],\n",
       "       [ 70, 120, 115],\n",
       "       [100,  72,  34],\n",
       "       [ 34,  13,  27],\n",
       "       [ 47,  82,  27],\n",
       "       [ 29,  94,  49],\n",
       "       [ 60, 120,  23],\n",
       "       [ 80,   5,  26],\n",
       "       [ 50,  18, 102],\n",
       "       [ 65,   6,  90],\n",
       "       [110,  33,   2],\n",
       "       [ 75, 115,  16]])"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#男生成绩\n",
    "male_score = data[male][:,1:]\n",
    "male_score"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "id": "9862bfdc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([0, 1, 1])"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#女生成绩最小值\n",
    "fe_minscore = np.min(female_score,axis = 0)\n",
    "fe_minscore"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "id": "9b9fdea0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([2, 0, 2])"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#男生成绩最小值\n",
    "m_minscore = np.min(male_score,axis= 0)\n",
    "m_minscore"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "f61e69e0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([62.38787879, 62.6969697 , 61.5030303 ])"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#女生平均分\n",
    "fe_avg = np.mean(female_score,axis = 0)\n",
    "fe_avg"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "id": "c3124af1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([57.93333333, 61.54074074, 59.35555556])"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#男生平均分\n",
    "m_avg = np.mean(male_score,axis = 0)\n",
    "m_avg"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "id": "f50ad0d5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([67., 60., 62.])"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#女生中位数\n",
    "fe_median = np.median(female_score,axis = 0)\n",
    "fe_median"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "id": "0eb23fee",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([54., 66., 58.])"
      ]
     },
     "execution_count": 53,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#男生中位数\n",
    "m_median = np.median(male_score,axis = 0)\n",
    "m_median"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "7f459dd8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([34.7049185 , 34.61186068, 36.67178326])"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#女生标准差\n",
    "fe_std = np.std(female_score,axis = 0)\n",
    "fe_std"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "e3395567",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([36.50310996, 38.91258255, 35.61615669])"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#男生标准差\n",
    "m_std = np.std(male_score,axis = 0)\n",
    "m_std"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
